package com.shelpe.services.lexicon.service.price;

import com.shelpe.services.lexicon.entity.WordInsightMetric;
import com.shelpe.services.lexicon.properties.AutoDriveParams.Mode;

import lombok.Data;

@Data
public class RecommendPriceRuleContext {

	private Mode mode;
	
	private int maxScore;
	private int minScore;
	private int maxPerformance;
	
	private int defaultPrice;
	private int maxtPrice;
	
	private WordInsightMetric categoryInsight;
	
	public void compareMaxScore(int score){
		if(this.maxScore < score){
			this.maxScore = score;
		}
	}
	
	public void compareMaxPerformance(int performance){
		if(this.maxPerformance < performance){
			this.maxPerformance = performance;
		}
	}
	
	public void compareMinScore(int score){
		if(score <= 0){
			return;
		}
		
		if(this.minScore == 0 || this.minScore > score){
			this.minScore = score;
		}
	}
}
